<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $tamember['username']?>的相册</title>
<link href="/css/base.css" type="text/css" rel="stylesheet" />
<link href="/css/manage.css" type="text/css" rel="stylesheet" />
<link href="/css/layout.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="/js/jquery.default.js"></script>
<script type="text/javascript" src="/js/jquery.validate.js"></script>
<script type="text/javascript" src="../../js/jquery.masonry.min.js"></script>
<script type="text/javascript" src="/js/xiaodian.js"></script>
<!--[if ie]><link href="/css/ie.css" type="text/css" rel="stylesheet"><![endif]-->

</head>

<body>
   <?php $this->load->view('head');?>
    <div class="w100p mt40 mb20">
    	<div class="w903 mg">
        	<div class="box_s1">
            	<div class="b_head"></div>
                <div class="content">
					<div class="mem_pd_s1">
                    	<!-- top -->
                    	<?php $eData['tamember']= $tamember;
                    		$eData['tab']='photo'
                    	?>
                    	<?php $this->load->view('tatop',$eData)?>
                    	
                        <!-- top--end-->
                        <div class="clearfix mt20 mb20">
                        	<a href="#" class="street_talk">>>添加小店晒图</a>
                        	<ul class="member_sub_menu fl">
                            	<li class="current">
                                	<a href="<?php echo site_url('taphoto/'.$eID)?>">个人相册[12]</a>
                                </li>
                                <li>
                                	<a href="<?php echo site_url('tastorepic/'.$eID)?>">小店晒图[12]</a>
                                </li>
                                <li>
                                	<a href="<?php echo site_url('tastreetpic/'.$eID)?>">恋街图片[1]</a>
                                </li>
                            </ul>
                            <div class="clear"></div>
                        </div>
                        <div class="clearfix pt15">
                        	<div class="member_left">
                            	<div class="photo_det_box mb25">
                                	<h3 class="title"><?php echo $tamember['username']?>的照片</h3>
                                    <div class="photo_det">
                                    	<div class="top">
                                        	<a href="<?php echo $prephoto['id']?>">上一页</a><a href="<?php echo $nextphoto['id']?>">下一页</a>
                                        </div>
                                        <ul>
                                        	<li><a href="#"><img src="<?php echo site_url($photo['imagePath'])?>"  class="block" /></a></li>
                                            <li style="display:none;"><a href="#"><img src="../../images/others/pic_580x320.png" class="block" /></a></li>
                                            <li style="display:none;"><a href="#"><img src="../../images/others/pic_580x320.png" class="block" /></a></li>
                                        </ul>
                                    </div>
                                    <div class="from">来自：<a href="<?php echo site_url('tamember?id='.$tamember['id'])?>"><?php echo $tamember['username']?></a>&nbsp;<span class="date"><?php echo date('Y-m-d H:i:s',$photo['createtime'])?></span></div>
                                </div>
                                
                                <!-- comment_frame -->
                                <div class="com_comment">
                                    <h3>评论</h3>
                                    <div class="main_comment">
                                    	<ul class="face_box">
			                                <li express="[大笑]"><img src="<?php echo site_url('').'images/others/face_1.png'?>"/></li>
			                                <li express="[惊讶]"><img src="<?php echo site_url('').'images/others/face_2.png' ?>" /></li>
			                                <li express="[害羞]"><img src="<?php echo site_url('').'images/others/face_3.png' ?>" /></li>
			                                <li express="[哈切]"><img src="<?php echo site_url('').'images/others/face_4.png' ?>" /></li>
			                                <li express="[白眼]"><img src="<?php echo site_url('').'images/others/face_5.png' ?>" /></li>
			                                <li express="[大哭]"><img src="<?php echo site_url('').'images/others/face_6.png' ?>" /></li>
			                                <li express="[偷笑]"><img src="<?php echo site_url('').'images/others/face_7.png' ?>" /></li>
			                                <li express="[示爱]"><img src="<?php echo site_url('').'images/others/face_8.png' ?>" /></li>
			                            </ul>
                                        <form action="" id="issue_comment">
                                        	<table class="com_form issue_comment">
                                           		<tr>
                                                	<td><textarea class=" def_ta_s5" name="info" id="comment_content"></textarea><br class="clear"><div class="validate_v" ></div></td>
                                                </tr>
                                                <tr>
                                                	<td class="tr"><input type="button" id="comment_button" value="提交" class="def_btn_s9 mt5 submit" /></td>
                                                </tr>
                                            </table>
                                        </form>
                                    </div>
                                </div>
                                <!-- comment_frame-end-->
                                
                                <div class="blank60"></div>
                        
                            </div>
                            
                            <div class="member_right">
                            	<a href="<?php echo site_url('taphoto/'.$eID)?>" class="member_link">&gt;&gt;返回<?php echo $tamember['username']?>的相册</a>	
                                <a href="<?php echo site_url('tamember?id='.$tamember['id'])?>" class="member_link">&gt;&gt;返回<?php echo $tamember['username']?></a>	
                            </div>
                        </div>
                     </div>
                    
                    
                </div>
                <div class="b_foot"></div>
            </div>
        </div>
    </div>
    
   <?php $this->load->view('foot')?>
</body>
<script type="text/javascript">
	
	$(function(){
		$("#comment_button").click(function(){
			var content = $("#comment_content").val();
			if(content == null || content ==''){
				alert('评论不能为空');
				return ;
			}

			$.post("<?php echo site_url('member/savecomment')?>",{
				type:3,
				belongId:'<?php echo $photo['id']?>',
				content:content
			},function(data){
					var ret = $.parseJSON(data);
					if(ret.success == 'true'){
						window.location.reload();
					}else{
						alert(ret.msg);
					}
					
				});
		});
	});
</script>
</html>
